package dk.Service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.ReturnData.ResponseData;



@Service
@FeignClient(value="Dk-TokenServer")
public interface TokenService {
@PostMapping("GetTokenByid")
public ResponseData GetTokenByid(@RequestParam(name="id") Integer id,@RequestParam(name="days") Integer days);

@PostMapping(value="/GetIdByToken")
public Integer GetIdByToken(@RequestParam(name="token")String token);

@PostMapping(value = "GetCodeUUidByCode")
public String GetCodeUUidByCode(@RequestParam(name="code")String code);
@PostMapping(value = "CheckUUidAndCode")
public int CheckCheckUUidAndCode(@RequestParam(name="UUid")String UUid, @RequestParam(name="code")String code);
}
